//
//  GamePlayLayer.h
//  MathSpeed
//
//  Created by ToanTM on 5/16/14.
//
//

#ifndef __MathSpeed__GameMenuLayer__
#define __MathSpeed__GameMenuLayer__

#include <iostream>
#include <cocos2d.h>
#include "GamePlayLayer.h"
#include "GameMode.h"

USING_NS_CC;

class GameMenuLayer : public CCLayer
{
public:
    virtual bool init();
    static CCScene* scene();
    CREATE_FUNC(GameMenuLayer);
    
    // method
    void buttonMenuHardCallback(CCObject* sender);
    void buttonMenuNormalCallback(CCObject* sender);
    void buttonMenuEasyCallback(CCObject* sender);
    void gotoGamePlayLayer();
    void keyBackClicked(void);
    void removeSplashScreen(CCObject* sender);
private:
    CCMenu* mMenu;
    GameMode::GamePlayMode mGameMode;
    bool mIsBackPress;
    static bool mIsShowSplashScreen;
    // method
    void startGamePlayLayer(GameMode::GamePlayMode mode);
    void appear();
    void exit();
};

#endif /* defined(__MathSpeed__GameMenuLayer__) */
